package com.jerome.fs.storage;

import java.io.Serializable;

/**
 * Entity for DBF data caching file
 * Supports serialization
 * Similar to the concept of Redis RDF
 */
public class DBF implements Serializable {
    /**
     * Cached data
     */
    private ExpiringMap expiringMap;
    /**
     * Lamport clock when caching
     */
    private int latestTime;

    public ExpiringMap getExpiringMap() {
        return expiringMap;
    }

    public void setExpiringMap(ExpiringMap expiringMap) {
        this.expiringMap = expiringMap;
    }

    public int getLatestTime() {
        return latestTime;
    }

    public void setLatestTime(int latestTime) {
        this.latestTime = latestTime;
    }
}
